<?php
/*
 * @Description: 
 * @Author: Leequik
 * @Date: 2025-03-20 21:29:17
 * @LastEditTime: 2025-03-21 00:05:22
 * @LastEditors: Leequik
 */

namespace App\Jobs;

use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;

class RedisQueueTest implements ShouldQueue
{
    use Queueable;
    public $priority = 'high'; // 指定任务优先级为 high

    protected $msg;

    /**
     * Create a new job instance.
     */
    public function __construct($msg)
    {
        $this->msg = $msg;
    }

    /**
     * Execute the job.
     */
    public function handle()
    {
        echo '接收到了消息：'. $this->msg . ',处理时间：',date('Y-m-d H:i:s'),PHP_EOL;
    }
    
    
}
